Skip to main content

ON_STEP

ON_STEP

This Event is triggered when a hero takes a step on the specified cell.
NOTE: For this Event, it is possible to specify the REPEAT and LAST options.
NOTE: This Event also supports the optional parameter (cell).

  • Example 1: {[[(J), ON_STEP:REPEAT]] You hear a strange noise..}
  • Example 2: {[[(J), ON_STEP]] The floor of this corridor seems unstable..}

In Example 1, every time a hero takes a step on the cell marked J, the text "You hear a strange noise" appears. In Example 2, the first time a hero takes a step on the cell marked J, the text "The floor of this corridor seems unstable" appears.

NOTE: with ON_STEP it can be useful to use the marker multiple times, in various positions. In this case, the Event is triggered in any of the cells with that specific Marker. (see Example 2)

  • Example 3: {[[(B), ON_STEP(E20)]] The floor of this tile seems unstable..}

In Example 3, the (cell) parameter is used, indicating that when passing over cell E20, the message "The floor of this tile seems unstable.." will be shown.

  • Example 4:
    {[[(O), HIDE_ON(J6)]]}
    {[[(O), ON_STEP:LAST]] [[SHOW(J6)]] As the heores run to get out of the crumbling lair. a block fall behind them.}

In Example 4, first we hide the block present at J6 using HIDE_ON, then when the last of the heroes passes over the marker O, the Block present on cell J6 will be shown and the text "As the heroes run to get out of the crumbling lair, a block falls behind them" will be shown.

Attention: ON_STEP:LAST keeps track of all the Heroes (and NPCs) passing by, so if the same Hero passes back and forth over the cell indicated by the event, it will be recorded that the Hero has come back, and therefore it will not trigger until this hero passes over the cell again. Be careful when writing a quest with this Event, taking this possibility into account.